package cmd.commands;

import model.Player;

public class DeleteRecordsCommand extends Command {
	public DeleteRecordsCommand(Command c) {
		super(c.command, c.parameters);
	}

	@Override
	public boolean execute() {
		int[] deleteList = this.getIntegerParameterList();
		if (deleteList == null) {
			return false;
		}
		Player.getInstance().deletePlaylistRecords(deleteList);
		return true;
	}
}
